const mongoose = require('mongoose');//引入mongoose
const questionsSchema = new mongoose.Schema({
    // 类似
    analysis: String,
    answer: Array,
    KnowledgePointId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'knowledgePointsModel'
    },
    question:String,
    RightKey:String,
    score:Number
});

const questionsModel = mongoose.model("questionsModel", questionsSchema, "questions");
module.exports = { questionsModel };